Answer: A function is a self-contained block of code that performs a specific task and can be called from other parts of the program.
Answer: Functions help in modularizing code, promoting code reuse, improving readability, and simplifying debugging and maintenance
Answer: You declare a function by specifying its return type, name, and parameters (if any) before using it in the program.
Answer: A function prototype is a declaration of a function that specifies its return type, name, and parameters without providing the function body. It tells the compiler about the existence and signature of the function.
Answer: The return statement is used to exit a function and optionally return a value to the caller.
Answer: Formal parameters are the parameters declared in the function definition, while actual parameters are the values passed to the function when it is called.
Answer: Function overloading is a feature that allows multiple functions with the same name but different parameter lists to coexist in the same scope.
Answer: The base case is a condition in a recursive function where the function stops calling itself and returns a value without further recursion.
Answer: Parameters passed by reference (using pointers) allow the function to modify the original values of the variables passed as arguments.
Answer: A function pointer is a variable that stores the address of a function.